package com.hs.hbp.action;

import java.sql.Connection;
import java.sql.DriverManager;

public class Test {
	private static Connection con=null; 
	     public static final Connection getCon(){
	    String forname="oracle.jdbc.driver.OracleDriver";
	      String url="jdbc:oracle:thin:@127.0.0.1:1521:orcl";
	      String user="HBP_USER";
	      String password="PASSWORD"; 
	      try
	      {
	          Class.forName(forname).newInstance();
	          con =DriverManager.getConnection(url,user,password);
	   }
	   catch(Exception e)
	   {
	    e.printStackTrace();
	   }
	      return con;
	       }
   public static void main(String[] args){
	   getCon();
   }
}
